package record.test.workFlowInfo;

import lombok.Data;
import record.annotation.RecordAnnotation;
import record.type.PriorityTypeHandler;

import java.util.List;

/**
 * @Package: com.TestAnnotation
 * @ClassName: WorkFlow
 * @Author: wulongkai
 * @CreateTime: 2023/12/19 14:40
 * @Description: 工作流配置类
 */
@Data
@RecordAnnotation(desc = "工作流配置类")
public class WorkFlow {
    @RecordAnnotation(desc = "工作流配置ID", mapKey = true)
    String id;

    @RecordAnnotation(desc = "工作流名称")
    String workFlowName;

    @RecordAnnotation(desc = "工作流类型")
    Integer workFlowType;

    @RecordAnnotation(desc = "优先级", typeHandlerClass = PriorityTypeHandler.class)
    Integer priority;

    @RecordAnnotation(desc = "工作流节点配置列表")
    List<WorkFlowNode> workFlowNodeList;

    @RecordAnnotation(desc = "工作流节点配置")
    WorkFlowNode workFlowNode;
}
